﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EnCor.Security
{
    public abstract class TokenProvider : IAuthenticationProvider, ITokenProvider
    {
        public abstract string GenerateToken(EnCorIdentity identity);

        public abstract EnCorIdentity GetIdentitybyToken(string token);

        public abstract UserIdentity Authenticate(Credential credential);

    }
}
